import 'package:json_annotation/json_annotation.dart';

part 'recommend_books.g.dart';

@JsonSerializable()
class RecommendBooks {

  RecommendBooks({this.items});
  factory RecommendBooks.fromJson(Map<String, dynamic> json) => _$RecommendBooksFromJson(json);
  Map<String, dynamic> toJson() => _$RecommendBooksToJson(this);
  List<item> items;




}



@JsonSerializable()
class item {

  item({this.url,this.name,this.coverUrl,this.tagName,this.pushDate});
  factory item.fromJson(Map<String, dynamic> json) => _$itemFromJson(json);
  Map<String, dynamic> toJson() => _$itemToJson(this);

  String name;
  String url;
  @JsonKey(name: 'cover_url')
  String coverUrl;
  @JsonKey(name: 'tag_name')
  String tagName;
  @JsonKey(name: 'push_date')
  String pushDate;
}